import type { categoryValueListModel } from "@/api/product/model/categoryModel";
import type { RouteRecordRaw } from "vue-router";

// 用户信息包括权限数据
export interface UserInfoState {
  token: string;
  avatar: string;
  name: string;

  menuRoutes: RouteRecordRaw[]; // 用于生成导航菜单的路由列表

  buttons: string[]; // 按钮权限值名称的数组
  roles: string[]; // 角色名称的数组
}

export interface categoryIdsListsModel {
  category1Id: number | null; //1级id
  category2Id: number | null; //2级id
  category3Id: number | null; //3级id
  category1List: categoryValueListModel; //1级id列表数据
  category2List: categoryValueListModel; //2级id列表数据
  category3List: categoryValueListModel; //3级id列表数据
}
